﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using ESRI.ArcGIS.Carto;
using ESRI.ArcGIS.Geodatabase;
using Akiha.Core;
using ESRI.ArcGIS.Geometry;



namespace ArcMap_AddIn_Tools.AppLevel.ShowAOData
{
    public partial class Form1 : Form
    {


        private IMap m_pMap = null;
        public Form1()
        {
            InitializeComponent();
        }

        public Form1(IMap pMap)
        {
            InitializeComponent();
            m_pMap = pMap;
        }

        //相比add dictionnary的做法节省了不少代码
        //统一使用数据绑定能获得不错的性能和便捷度
        private void Form1_Load(object sender, EventArgs e)
        {
            List<IFeatureLayer> lstFeaLyrs = MapWrapper.GetLayers(m_pMap, null);

            if (lstFeaLyrs.Count == 0)
            {
                return;
            }
            comboBoxExtensionForAO1.LoadFeatures(lstFeaLyrs[0].FeatureClass, "名称");
        }

        private void button1_Click(object sender, EventArgs e)
        {

        }





        //最短路径分析

        






    }
}
